import { handleRequest } from './index';


// 获取-危大工程管控计划列表
export function getControlPlanList(data) {
    return handleRequest({
        url: '/critical-project/control-plan/list',
        method: 'post',
        data
    })
}

// 获取-危大工程管控计划统计
export function getControlPlanCount(data) {
    return handleRequest({
        url: '/critical-project/control-plan/count',
        method: 'post',
        data
    })
}

// 查看-危大工程管控计划详情
export function getControlPlanDetail(query) {
    return handleRequest({
        url: '/critical-project/control-plan',
        method: 'get',
        params: query
    })
}

// 查看-危大工程管控计划详情
export function getAuditControlPlanDetail(query) {
    return handleRequest({
        url: '/critical-project/business',
        method: 'get',
        params: query
    })
}
// 新增-危大工程管控计划
export function addControlPlan(data, config) {
    return handleRequest({
        url: '/critical-project/control-plan',
        method: 'post',
        data,
    }, config)
}

// 删除-危大工程管控计划
export function deleteControlPlan(query) {
    return handleRequest({
        url: '/critical-project/control-plan/del',
        method: 'post',
        params: query
    })
}

// 修改-危大工程管控计划
export function updateControlPlan(data) {
    return handleRequest({
        url: '/critical-project/control-plan/update',
        method: 'post',
        data
    })
}
